﻿namespace My.Hydrator.Tests
{
    using System;
    using My.Hydrator.Conventions;

    public class AddressConvention : BaseTypeConvention, ITypeConvention
    {
        public Type Type
        {
            get { return typeof(Address); }
        }

        public object GenerateValue(object[] customAttributes)
        {
            return new Address()
                       {
                           City = "City",
                           State = -1,
                           StreetName = "StreetName",
                           StreetNumber = -1
                       };
        }
    }
}
